﻿<div class="modal fade" ng-class="{'in':$visible}" ng-show="$visible" style="display:block;">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" ng-click="$close()"><span>×</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" ng-bind="$title"></h4>
            </div>
            <!--内容区域开始-->
            <form class="form-horizontal" name="_form" ng-submit="$parent.SaveCustomer(_form,$close)" novalidate>

                <div class="modal-body" style="overflow:auto;" ng-style="{'height':$height}">

                    <div style="float:left;width:48%">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">客户名称(<lredstar></lredstar>):</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="CustomerName" ng-model="$parent.CustomerDialog_Customer.CustomerName" required ng-trim="false">
                            </div>
                            <!--<div class="col-sm-5 text-left">
                                <p class="l-valid-fail" ng-if="!_form.CustomerName.$valid">客户名称为必填项</p>
                            </div>-->
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">性别:</label>
                            <div class="col-sm-8">
                                <div class="btn-group">
                                    <a class="btn btn-default" ng-click="$parent.CustomerDialog_Customer.Gender='M'" ng-class="{'active':$parent.CustomerDialog_Customer.Gender=='M'}">男性</a>
                                    <a class="btn btn-default" ng-click="$parent.CustomerDialog_Customer.Gender='F'" ng-class="{'active':$parent.CustomerDialog_Customer.Gender=='F'}">女性</a>
                                </div>
                            </div>
                        </div>



                        <div class="form-group">
                            <label class="col-sm-4 control-label">生日:</label>
                            <div class="col-sm-8">
                                <input type="text" name="Birthday" ldatetimepicker ng-model="$parent.CustomerDialog_Customer.Birthday">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">初次领证日期:</label>
                            <div class="col-sm-8">
                                <input type="text" name="LicenceDate" ldatetimepicker ng-model="$parent.CustomerDialog_Customer.LicenceDate">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">准驾车型:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="QuasiDrivingType" ng-model="$parent.CustomerDialog_Customer.QuasiDrivingType">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">驾照有效期:</label>
                            <div class="col-sm-8">
                                <input type="text" name="LicenceExpiredDate" ldatetimepicker ng-model="$parent.CustomerDialog_Customer.LicenceExpiredDate">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">手机:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="Mobile" ng-model="$parent.CustomerDialog_Customer.Mobile">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">工作地址:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="WorkAddress" ng-model="$parent.CustomerDialog_Customer.WorkAddress">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">家庭地址:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="Address" ng-model="$parent.CustomerDialog_Customer.Address">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">家庭收入:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="Income" ng-model="$parent.CustomerDialog_Customer.Income">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">历史消费金额:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="HistoryPurchase" ng-model="$parent.CustomerDialog_Customer.HistoryPurchase">
                            </div>
                        </div>






                        <div class="form-group">
                            <label class="col-sm-4 control-label">备注:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="Remark" ng-model="$parent.CustomerDialog_Customer.Remark">
                            </div>
                        </div>
                    </div>
                    <div style="float:left;width:48%">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">国家:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="Country" ng-model="$parent.CustomerDialog_Customer.Country">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">身份证号:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="IdCardNum" ng-model="$parent.CustomerDialog_Customer.IdCardNum">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label">qq号:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="QQ" ng-model="$parent.CustomerDialog_Customer.QQ">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">微信号:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="WeChat" ng-model="$parent.CustomerDialog_Customer.WeChat">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">邮箱地址:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="Email" ng-model="$parent.CustomerDialog_Customer.Email">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">所在行业:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="Industry" ng-model="$parent.CustomerDialog_Customer.Industry">
                            </div>
                        </div>



                        <div class="form-group">
                            <label class="col-sm-4 control-label">爱好:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="Hobby" ng-model="$parent.CustomerDialog_Customer.Hobby">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">性格:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="Characters" ng-model="$parent.CustomerDialog_Customer.Characters">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label">婚否:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="MaritalStatus" ng-model="$parent.CustomerDialog_Customer.MaritalStatus">
                            </div>
                            <!--<div class="col-sm-10">
                                <div class="checkbox">
                                    <label>
                                        <input type="radio" name="MaritalStatus" value="1" ng-model="$parent.CustomerDialog_Customer.MaritalStatus"> 已婚
                                    </label>
                                    <label>
                                        <input type="radio" name="MaritalStatus" value="0" ng-model="$parent.CustomerDialog_Customer.MaritalStatus"> 未婚
                                    </label>
                                </div>
                            </div>-->
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label">孩子性别:</label>
                            <div class="col-sm-8">
                                <div class="btn-group">
                                    <a class="btn btn-default" ng-click="$parent.CustomerDialog_Customer.ChildGender='M'" ng-class="{'active':$parent.CustomerDialog_Customer.ChildGender=='M'}">男性</a>
                                    <a class="btn btn-default" ng-click="$parent.CustomerDialog_Customer.ChildGender='F'" ng-class="{'active':$parent.CustomerDialog_Customer.ChildGender=='F'}">女性</a>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-4 control-label">孩子年龄:</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="ChildAge" ng-model="$parent.CustomerDialog_Customer.ChildAge">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary" ng-disabled="_form.$invalid">保存</button>
                    <button type="button" class="btn btn-default" ng-click="$close()">关闭</button>
                </div>
            </form>
            <!--内容区域结束-->
        </div>
    </div>
</div>